package com.kevin.delegationadapter.sample.samedata.adapter;

import androidx.annotation.NonNull;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.library.baseAdapters.BR;

import com.kevin.delegationadapter.extras.binding.BindingAdapterDelegate;
import com.kevin.delegationadapter.sample.R;
import com.kevin.delegationadapter.sample.samedata.bean.Bill;

/**
 * ChargeInfoAdapterDelegate
 *
 * @author zwenkai@foxmail.com, Created on 2018-04-28 17:27:41
 *         Major Function：<b></b>
 *         <p/>
 *         注:如果您修改了本类请填写以下内容作为记录，如非本人操作劳烦通知，谢谢！！！
 * @author mender，Modified Date Modify Content:
 */

public class ChargeInfoAdapterDelegate extends BindingAdapterDelegate<Bill> {

    public static final String TAG = "ChargeInfoDelegateAdapter";

    public ChargeInfoAdapterDelegate() {
        super(TAG);
    }

    @Override
    public int getLayoutRes() {
        return R.layout.item_bill_charge_info;
    }

    @Override
    public void setVariable(@NonNull ViewDataBinding binding, Bill item, int position) {
        binding.setVariable(BR.model, item);
    }
}
